package com.ruochen.recipe.customer;

import com.blankj.utilcode.util.SizeUtils;

public class RawMaterialItemDecoration extends SpacesItemDecoration {

    @Override
    public int getSpaceLeft(int position, int itemCount) {
        if(position%4 == 0){
            return SizeUtils.dp2px(16);
        }
        return 0;
    }

    @Override
    public int getSpaceRight(int position, int itemCount) {
        return SizeUtils.dp2px(8);
    }

    @Override
    public int getSpaceTop(int position, int itemCount) {
        return 0;
    }

    @Override
    public int getSpaceBottom(int position, int itemCount) {
        return SizeUtils.dp2px(8);
    }
}
